
function checkPermission() {
	var pers = [];
	var permissions = jQuery.parseJSON(localStorage.permission);
	$("[permission]").each(function() {
		var per = $(this).attr("permission");
		if ($.inArray(per, permissions) < 0) {
			$(this).hide();
		}
	});

	return pers;
}